<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./jq-3.6.0.js"></script>
    <script>
        // var box = document.querySelector('.box');
        // console.log(box);
        //$(选择器) 获取出来一个jq数组对象
        //1.$(内部函数)
        //2.$(document).ready(内部函数)
        // $(function() {
        //     var box = $('.box');
        //     console.log(box);
        //     var nv = $('#nv');
        //     console.log(nv);
        //     var divs = $('div');
        //     console.log(divs[0]);
        // })
        $(document).ready(function() {
            var box = $('.box');
            console.log(box);
            var nv = $('#nv');
            console.log(nv);
            var divs = $('div');
            console.log(divs[0]);
        })
    </script>
</head>

<body>
    <div class="box">你好</div>
    <div id="nv">你好1</div>
</body>


</html>